package com.guochao.service.impl;

import com.guochao.dao.ClassificationMapper;
import com.guochao.entity.ClassIfication;
import com.guochao.service.ClassificationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ClassificationServiceIMPL implements ClassificationService {

    @Resource
    private ClassificationMapper classificationMapper;

    @Override
    public List<ClassIfication> selAllClass() {
        return classificationMapper.selAllClass();
    }
    @Override
    public List<ClassIfication> selAll() {
        return classificationMapper.selAllClass();
    }

    @Override
    public int addSort(ClassIfication sort) {
        return classificationMapper.addSort(sort);
    }

    @Override
    public int deleteSort(Integer classid) {
        return classificationMapper.deleteSort(classid);
    }

    @Override
    public int upSort(ClassIfication sort) {
        return classificationMapper.upSort(sort);
    }
}
